<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <form name="f_insertar" method="post" action="">
        <table width="500" height="10" border="1" align="center">
            <tr >
                <td  align="center">
                    FORMULARIO SERVICIO
                     <table  width="300" height="10" border="1" >
                      <tr>
                        <td width="600" align="center"> 
                            Nombre
                        </td>
                        <td width="300" aling="center" size="25">
                            
                            <input type="text" name="t_nom" value="" size="25">
                        </td>
                      </tr>
                     </table>
                </td>
            </tr>
              <tr>
                <td>
                    <input type="submit" name="i" value="Guardar">
                    <input type="hidden" name="c_f_insertar" value="f_insertar">
                    <input type="submit" name="a" value="Actualizar">
                    <input type="submit" name="e" value="Eliminar">
                 </td>
              </tr>
        </table>   
       </form>
        <?php
        require_once '../Negocio/CsServicios.php';
        
   function insertar()
   {   
	  $observicio=new CsServicio();
	  $observicio->CsServicio=$_POST('t_nom');  	  	   
	  $observicio->GuardarDato();
	   echo "Error";
   }     
   if ( detectarF("f_insertar","c_f_insertar") )
   {     
     insertar();
   }   
        ?>
        
    </body>
</html>
